package leetcode.code1480;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution1480 implements IDebug {

	abstract public int[] runningSum(int[] nums);

	public void debug(String input, String expect) {
		int[] in = HelpDebug.str2array3(input);
		int[] out = HelpDebug.str2array3(expect);
		int[] result = this.runningSum(in);
		HelpDebug.printInputs(out, new Object[] { in });
		HelpDebug.printObject(result);
	}

	@Override
	public void debug1() {
		String input = "[1,2,3,4]";
		String expect = "[1,3,6,10]";
		this.debug(input, expect);
	}

	@Override
	public void debug2() {
		String input = "[1,1,1,1,1]";
		String expect = "[1,2,3,4,5]";
		this.debug(input, expect);
	}

	@Override
	public void debug3() {
		String input = "[3,1,2,10,1]";
		String expect = "[3,4,6,16,17]";
		this.debug(input, expect);
	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
